package aps

import glory.xxd.Utils

/**
 * 登录
 */
class LoginController {

    def commentService
    def xmlSend() {

        def USERNAME = params.USERNAME ?: ""
        def PASSWORD = params.PASSWORD ?: ""
        def AREA = params.AREA ?: ""
        def body = CommentParams.newInstance()
        body.setUSERNAME(USERNAME)
        body.setPASSWORD(PASSWORD)
        body.setAREA(AREA)

        String logUUID = Utils.getUUID();
        Header header = Header.newInstance()
        header.setMESSAGENAME("ClientLogin");
        header.setTRANSACTIONID(logUUID);
        header.setUSERNAME("ClientMonitor")
        def json = commentService.getJsonByObjectForQueue2Queue(logUUID,header,body)

//        print json
        render json
    }
}
